Fix VM.set_actions_after_{reboot,shutdown}.
authorEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 21:41:58 +0000 (21:41 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 21:41:58 +0000 (21:41 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendAPI.py

index c89f5467d06fe9b539cdabaedd7d0c72916e6f46..d229d57df4a62315f0a694011f33c6262e6cff10 100644 (file)
@@ -1284,12 +1284,12 @@ class XendAPI(object):
         return xen_api_todo()
     
     def VM_set_actions_after_shutdown(self, session, vm_ref, action):
-        if action not in XEN_API_ON_NORMAL_EXIST:
+        if action not in XEN_API_ON_NORMAL_EXIT:
             return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
         return self.VM_set('actions_after_shutdown', session, vm_ref, action)
     
     def VM_set_actions_after_reboot(self, session, vm_ref, action):
-        if action not in XEN_API_ON_NORMAL_EXIST:
+        if action not in XEN_API_ON_NORMAL_EXIT:
             return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
         return self.VM_set('actions_after_reboot', session, vm_ref, action)